package com.cheng.reggie.mapper;

import com.cheng.reggie.entity.Dish;
import com.cheng.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

public interface SetmealDishMapper {

    //套餐管理: 删除指定多个套餐id的套餐菜品关系数据(伪删除)
    Integer deleteBySetmealIds(@Param("ids") List<Long> ids,
                        @Param("updateUser") Long updateUser,
                        @Param("updateTime") LocalDateTime updateTime);

    //批量插入套餐菜品列表数据
    Integer save(@Param("setmealDishList") List<SetmealDish> setmealDishList);
}
